package com.ybb.vue.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

/**
 * 操作记录表
 * @TableName operation_records
 */
@TableName(value ="operation_records")
@Data
public class OperationRecords extends BaseEntity implements Serializable {

    /**
     * 操作者
     */
    private String operater;

    /**
     * 操作时间
     */
    @JsonSerialize(using=CustomDateTimeSerializer.class)
    @JsonFormat(pattern ="yyyy-MM-dd HH:mm:ss")
    private Date operateTime;

    /**
     * 操作内容
     */
    private String operateContent;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;
}